package cn.gemiman.daoyi.module.iot.service.userequipment;

import cn.gemiman.daoyi.framework.common.pojo.PageResult;
import cn.gemiman.daoyi.module.iot.controller.admin.userequipment.vo.UserEquipmentPageReqVO;
import cn.gemiman.daoyi.module.iot.controller.admin.userequipment.vo.UserEquipmentSaveReqVO;
import cn.gemiman.daoyi.module.iot.dal.dataobject.userequipment.UserEquipmentDO;
import jakarta.validation.Valid;

/**
 * 会员设备 Service 接口
 *
 * @author 道一源码
 */
public interface UserEquipmentService {

    /**
     * 创建会员设备
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createUserEquipment(@Valid UserEquipmentSaveReqVO createReqVO);

    /**
     * 更新会员设备
     *
     * @param updateReqVO 更新信息
     */
    void updateUserEquipment(@Valid UserEquipmentSaveReqVO updateReqVO);

    /**
     * 删除会员设备
     *
     * @param id 编号
     */
    void deleteUserEquipment(Long id);

    /**
     * 获得会员设备
     *
     * @param id 编号
     * @return 会员设备
     */
    UserEquipmentDO getUserEquipment(Long id);

    /**
     * 获得会员设备分页
     *
     * @param pageReqVO 分页查询
     * @return 会员设备分页
     */
    PageResult<UserEquipmentDO> getUserEquipmentPage(UserEquipmentPageReqVO pageReqVO);

    void deleteUserEquipment(Long id, Long userId);
}
